cmake_minimum_required(VERSION 2.8.3)
project(test_plan_manage)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++14")
# set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")

find_package(Eigen3 REQUIRED)
find_package(PCL 1.7 REQUIRED)

find_package(catkin REQUIRED COMPONENTS
    roscpp
    std_msgs
    geometry_msgs
    quadrotor_msgs
    poly_traj
    plan_env
    path_searching
    bspline
    bspline_opt
    traj_utils
    active_perception
    plan_manage
    cv_bridge
    )


catkin_package(
    INCLUDE_DIRS
    LIBRARIES test_plan_manage
    CATKIN_DEPENDS plan_env path_searching bspline bspline_opt active_perception traj_utils plan_manage)

include_directories(
    include
    SYSTEM
    ${catkin_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/include
    ${EIGEN3_INCLUDE_DIR}
    ${PCL_INCLUDE_DIRS}
)

add_executable(test_plan_manage_node
    src/test_plan_manage_node.cpp
    )
target_link_libraries(test_plan_manage_node
    ${catkin_LIBRARIES}
    ${PCL_LIBRARIES}
    )
